<include file="Public:js" /> 
<div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">修改轮播</span></div>
        </div>
        
        <div class="result-wrap">
            <form action="{:U('Qrcode/editLunboSub')}" method="post" id="myform" name="myform">
            <!-- 店铺ID -->
                 <input type="hidden" name="supplier_id" value="{$data.supplier_id}"> 
                <!-- 商品ID -->
                 <input type="hidden" name="goods_id" value="{$data.goods_id}">  
             <input type="hidden" name="id" value="{$data.id}"> 
                <div class="config-items">
                    <div class="config-title">
                        <h1><i class="icon-font">&#xe00a;</i>修改轮播</h1>
                    </div>
                    <div class="result-content">
                        <table width="100%" class="insert-tab">
                            <tbody>
                            <tr>
                                 <th width="15%"><i class="require-red">*</i>广告位置</th>           
                               <td>
                                  <select name="lunbo_weizhi">  
                                        <!-- <option value="0">顶级分类</option>   -->
                                        
                                            <option value="1" <if condition="$data.lunbo_weizhi eq 1 ">selected = "selected"   </if> size="85"  class="common-text">
                                            第一区位置
                                            </option>  
                                             <option value="2" <if condition="$data.lunbo_weizhi eq 2 ">selected = "selected"   </if>   size="85"  class="common-text">
                                            第二区位置
                                            </option>  
                                             <option value="3" <if condition="$data.lunbo_weizhi eq 3 ">selected = "selected"   </if>   size="85"  class="common-text">
                                            第三区位置
                                            </option>  
                                      
                                    </select>  
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red"></i>广告链接</th>
                               <td>
                                    <input type="text"  style='width: 70%' datatype="url" nullmsg="请填写广告链接" errormsg="请填写广告链接"  name="dzrul" value="{$data.dzrul}" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>上传广告图片</th>
                               <td id="btn">
                                  <ul id="ul_pics" class="ul_pics clearfix"></ul>
                    <a href="" id='img_pic_h' target="_blank">
                    <img id='img_pic_d' <if condition="$data.imgurl neq '' "> src="{$data.imgurl}" <else /> src="__PUBLIC__/images/rwlx_pic11.png" </if> class="WU_cgrw_sctp1" width="120" height="120" /></a>
                                  <div class="WU_cgrw_sctp2Box ">上传图片</div>

                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>图片地址</th>
                               <td>
                                    <input type="text"  style='width: 70%' value="{$data.imgurl}" name="img_url" class="common-text"> 
                               </td>
                                 
                            </tr>
                           
                            <tr>
                                 <th width="15%"><i class="require-red"></i>排序</th>
                               <td>
                                    <input type="text"  style='width: 70%' datatype="n" nullmsg="请填写排序" errormsg="请填写正确排序" value="{$data.sort}" name="sort" class="common-text"> 
                               </td>
                                 
                            </tr>

                            <tr>
                                 <th width="15%"><i class="require-red"></i>是否显示</th>
                               <td>
                                   <input type="radio" checked="true" <if condition="$data.is_open eq 1 ">checked='true' </if> name="is_open" value='1' id="">显示
                                   <input type="radio" name="is_open" id="" <if condition="$data.is_open eq 0 ">checked='true' </if> value='0'>不显示
                               </td>
                                 
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                  
                                    <input type="submit" value="提交" class="btn btn-primary btn6 mr10">
                                    <input type="button" value="返回" onclick="history.go(-1)" class="btn btn6">
                                </td>
                            </tr>

                            </tbody></table>
                    </div>
                </div>
                </form>
                
        </div>
    </div>
<script type="text/javascript" src="__PUBLIC__/plupload/plupload.full.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/btn.js"></script>
<script type="text/javascript">
$(function(){
	
	 $("#myform").Validform({
	    
	 });  //就这一行代码！;
		
	  
	
})
</script>